/**
 * @author xuzj
 */
CQCIS.tree.ColumnTreeRootNode = Ext.extend(Ext.tree.AsyncTreeNode, {
	reload : function(callback) {
		this.collapse(false, false);
		while (this.firstChild) {
			this.removeChild(this.firstChild);
		}
		this.childrenRendered = false;
		this.loaded = false;
		if (this.isHiddenRoot()) {
			this.expanded = false;
		}
		var checkedRows = this.getOwnerTree().checkedRows;
		if (checkedRows) {
			var key = this.getOwnerTree().columns[0].id;
			for (var i = 0;i < checkedRows.length; i++) {
				if (checkedRows[i][key] == this.id) {
					if (!this.isSelected()) {
						this.select();
					}
					break;
				}
			}
		}
		this.expand(false, false, callback);
	}
});
